package com.example.springboot.mapper;

import com.example.springboot.entity.MerchantOrderReview;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MerchantOrderReviewMapper {
    MerchantOrderReview selectByOrderId(Integer orderId);

    // 新增：根据 review_id 查询
    MerchantOrderReview selectByPrimaryKey(Integer reviewId);

    void insert(MerchantOrderReview review);

    void updateByPrimaryKey(MerchantOrderReview review);

    int deleteByPrimaryKey(Integer reviewId);

    List<MerchantOrderReview> selectAll();

    List<MerchantOrderReview> selectByMerchantId(Integer merchantId);

    List<MerchantOrderReview> selectByUserId(Integer userId);
}